package com.example.demo;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController

public class TestController {
    @Value("${myImage.path}")
    private String myImage;

    @RequestMapping("/sayhi")
    public String sayHi(){
        System.out.println(LocalDateTime.now() + "日志"
        + "com.example.demo.TestController");
        return "你好，Spring Boot ->" + myImage;
    }
}
